<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/11/30
  Time: 20:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $.get("http://localhost:8080${pageContext.request.contextPath}/findGoodsType",null,function (data) {
                    // alert(data)
                for(var n in data){
                    $("#name").append("<option value='"+n+"'>"+data[n]+"</option>");
                }
            });
        });
    </script>

</head>
<body>
    <h3>商品类别</h3>
    <form action=""method="post" enctype="application/x-www-form-urlencoded">
        <select id="name" name="name">
            <option>---请选择---</option>
        </select>
    </form>
</body>
</html>
